import request from '@/utils/request'
const server = "/corn-goods-service/goods/";

export function fetchList(query) {
  //加油站列表
  const {
    pageSize = 10, page = 1, ...rest
  } = query || {}
  return request({
    url: server + '/oilstation/service/listOilstationByOilTypeOrderByDistanceOrPrice',
    method: 'post',
    data: {
      pageSize,
      page,
      ...rest
    },
    showLoading: false
  })
}



export function listShopGoods (param) {
  return request({
    url: server+'shopgoods/service/listShopGoods',
    method: 'get',
    params: param
  })
}